import Vue from 'vue'
import App from './App.vue'
// import router from 'vue-router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 导入 自定义全局 css  
import './assets/css/global.css'
// import './styles/index.scss'
import router from "./router";
import 'lib-flexible/flexible'
import qs from 'qs'

import iView from 'view-design';
import 'view-design/dist/styles/iview.css';
import axios from 'axios'
import './icons'
// Vue.use(axios)
Vue.config.productionTip = false
// Vue.use(router)
Vue.use(ElementUI)
Vue.use(iView);
Vue.prototype.axios = axios
Vue.prototype.$qs = qs
new Vue({
  render: h => h(App),
  router
}).$mount('#app')

Vue.filter('dateFormat', function(originVal) {
  const dt = new Date(originVal)

  const y = dt.getFullYear()
  const m = (dt.getMonth() + 1 + '').padStart(2, '0')
  const d = (dt.getDate() + '').padStart(2, '0')

  // const hh = (dt.getHours() + '').padStart(2, '0')
  // const mm = (dt.getMinutes() + '').padStart(2, '0')
  // const ss = (dt.getSeconds() + '').padStart(2, '0')

  return `${y}-${m}-${d}`
})




